<include file="public@header"/>
<style type="text/css">
    .pic-list li {
        margin-bottom: 5px;
    }
</style>
<script type="text/html" id="photos-item-tpl">
    <li id="saved-image{id}">
        <input id="photo-{id}" type="hidden" name="photo_urls[]" value="{filepath}">
        <input class="form-control" id="photo-{id}-name" type="text" name="photo_names[]" value="{name}"
               style="width: 200px;" title="图片名称">
        <img id="photo-{id}-preview" src="{url}" style="height:36px;width: 36px;"
             onclick="imagePreviewDialog(this.src);">
        <a href="javascript:uploadOneImage('图片上传','#photo-{id}');">替换</a>
        <a href="javascript:(function(){$('#saved-image{id}').remove();})();">移除</a>
    </li>
</script>
<script type="text/html" id="files-item-tpl">
    <li id="saved-file{id}">
        <input id="file-{id}" type="hidden" name="file_urls[]" value="{filepath}">
        <input class="form-control" id="file-{id}-name" type="text" name="file_names[]" value="{name}"
               style="width: 200px;" title="文件名称">
        <a id="file-{id}-preview" href="{preview_url}" target="_blank">下载</a>
        <a href="javascript:uploadOne('文件上传','#file-{id}','file');">替换</a>
        <a href="javascript:(function(){$('#saved-file{id}').remove();})();">移除</a>
    </li>
</script>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
          <li ><a href="{:url('Hospital/hoslist')}">医院管理</a></li>
          <li><a href="{:url('Hospital/hoslistadd')}">添加医院</a></li>
          <li class="active"><a href="{:url('Hospital/hoslistedit')}">修改医院信息</a></li>
    </ul>
    <form action="{:url('Hospital/hoslisteditt')}" method="post" class="form-horizontal js-ajax-form margin-top-20">
        <div class="row">
            <div class="col-md-9">
                <table class="table table-bordered">
  
                     <tr>
                        <th width="100">医院名称<span class="form-required">*</span></th>
                        <td>
                            <input class="form-control" type="text"  name="name" style="width:400px;" required value="{$res['name']}" placeholder="请填写医院名称"  id="js-categories-name-input"/>
                            <input class="form-control" type="hidden"  name="id" style="width:400px;" required value="{$res['id']}" placeholder="{$res['id']}"  id="js-categories-name-input"/>
                        </td>
                    </tr>
                    <tr>
                        <th width="100">医院等级<span class="form-required">*</span></th>
                      	<td >
							<select class="form-control" name="level" id="input-parent_id" >
								 <foreach name="levelinfo" item="vo">
										<option value="{$vo['id']}">{$vo['level']}</option>
								  </foreach>
							</select>
						</td>
                    </tr>
                    <tr>
                        <th width="100">地址<span class="form-required">*</span></th>
                        <td>
                            <input class="form-control" type="text"  name="address" style="width:400px;" required value="{$res['address']}" placeholder="请填写医院地址"  id="js-categories-name-input"/>
                        </td>
                    </tr>
                    <tr>
                        <th width="100">所在省市<span class="form-required">*</span></th>
                        <td>
                            <input class="form-control" type="text"  name="city" style="width:400px;" required value="{$res['city']}" placeholder="请填写所在省市"  id="js-categories-name-input"/>
                        </td>
                    </tr>
                    <tr>
                        <th width="100">添加部门<span class="form-required">*</span></th>
                        <td>
                            <foreach name="partmentinfo" item="ve">
                            	<input type="checkbox" value="{$ve['name']}" name="checkbox[]">{$ve['name']}
                            </foreach>
                        </td>
                    </tr>
                    <tr>
                        <th width="100">添加科室<span class="form-required">*</span></th>
                        <td>
                            <foreach name="departinfo" item="vl">
                            	<input type="checkbox" value="{$vl['name']}" name="checkbox1[]">{$vl['name']}
                            </foreach>
                        </td>
                    </tr>
                    <tr>
                        <th width="100">审核状态<span class="form-required">*</span></th>
                        <td >
							<select class="form-control" name="status" id="input-parent_id">
								<option value="0">未审核</option>
								<option value="1">已审核</option>
								<option value="2">未通过</option>
							</select>
						</td>
                    </tr>
               </table>
				<div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <button type="submit" class="btn btn-primary js-ajax-submit">修改</button>
                    </div>
                </div>
                <hook name="portal_admin_article_edit_view_right_sidebar"/>
            </div>
        </div>
    </form>
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
<script type="text/javascript">
    //编辑器路径定义
    var editorURL = GV.WEB_ROOT;
</script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript">
    $(function () {
    	

       
        

    });

 
</script>
</body>
</html>
